package edu.zut2.interface_demo;

public class Main {

    public static void main(String[] args) {
        //接口的中静态方法可以直接调用
        USB.connect();
        Mouse mouse = new Mouse();
        System.out.println("mouse.TYPE = " + mouse.TYPE);
        mouse.test();
        mouse.function();
        mouse.features();
        //子类实现接口后，子类对象不能直接使用接口中的静态方法
//        mouse.connect();
        USB usb = new Keyboard();
        usb.test();
        usb.function();
//        usb.features();
//        usb.connect();
    }

}
